import request from '@/utils/request'
import defaultSettings from '@/settings'
import { praseStrEmpty } from '@/utils/ruoyi'

// PVP结算申请信息报文审核查询
export const apiUrlConfigApproveQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/pvpSettlementapply/PVPSettlementApplyInformationApprove/search`,
}

// PVP结算申请信息报文审核通过
export function pvpSettlementApplyInformationApproveApprove(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/pvpSettlementapply/PVPSettlementApplyInformationApprove/approve`,
    method: 'post',
    data:data
  })
}

// PVP结算申请信息报文审核拒绝
export function pvpSettlementApplyInformationApproveReject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/pvpSettlementapply/PVPSettlementApplyInformationApprove/reject`,
    method: 'post',
    data:data
  })
}



// PVP结算申请信息报文录入
export function pvpSettlementApplyInformationEntrySave(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/pvpSettlementapply/PVPSettlementApplyInformationEntry/save`,
    method: 'post',
    data:data
  })
}


// PVP结算申请信息报文查询
export const apiUrlConfigQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/pvpSettlementapply/PVPSettlementApplyInformationQuery/search`,
}

// PVP结算申请信息报文查询明细
export function pvpSettlementApplyInformationEntryDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/pvpSettlementapply/PVPSettlementApplyInformationQuery/detail`,
    method: 'get',
    params:{id:data.id}
  })
}


//PVP结算申请信息报文复核
export const apiUrlConfigReviewQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/pvpSettlementapply/PVPSettlementApplyInformationReview/search`,
}

//PVP结算申请信息报文复核审核操作同意
export function pvpSettlementApplyInformationReviewApprvoe(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/pvpSettlementapply/PVPSettlementApplyInformationReview/approve`,
    method: 'post',
    data:data
  })
}

//PVP结算申请信息报文复核审核操作拒绝
export function pvpSettlementApplyInformationReviewReject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/pvpSettlementapply/PVPSettlementApplyInformationReview/reject`,
    method: 'post',
    data:data
  })
}




//PVP结算申请信息报文修改
export const apiUrlConfigUpdateQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/pvpSettlementapply/PVPSettlementApplyInformationUpdate/search`,
}

//PVP结算申请信息报文修改明细
export function pvpSettlementApplyInformationUpdateDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/pvpSettlementapply/PVPSettlementApplyInformationUpdate/detail`,
    method: 'get',
    params:{id:data.id}
  })
}


//PVP结算申请信息报文提交
export function pvpSettlementApplyInformationUpdateSave(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/pvpSettlementapply/PVPSettlementApplyInformationUpdate/save`,
    method: 'post',
    data:data
  })
}
//PVP结算申请信息报文删除
export function pvpSettlementApplyInformationUpdateDelete(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/pvpSettlementapply/PVPSettlementApplyInformationUpdate/delete`,
    method: 'post',
    data:data
  })
}
